//
//  UIScrollView+x.h
//  XPhoto
//
//  Created by sentinel on 2020/3/26.
//  Copyright © 2020 baboy. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIScrollView(BKKit_Refresh)
@property (nonatomic, assign) UIEdgeInsets originContentInset;
@property(nonatomic, assign) BOOL refresh;
//loadingView是否漏出来了
- (BOOL)shouldRefresh;
- (void)startRefreshing;
- (void)stopRefreshing;
@end

@interface UIScrollView(BKKit_LoadMore)
@property(nonatomic, assign) BOOL loadMore;
//loadingView是否漏出来了
- (BOOL)shouldLoadMore;
- (void)startLoading;
- (void)stopLoading;

-(void)scrollViewDidScroll;
-(void)scrollViewDidEndDragging;
@end



@protocol BKScrollViewDragRefreshDelegate <NSObject>
@optional
- (void)scrollViewWillBeginLoadingMore:(id)scrollView;
- (void)scrollViewWillBeginRefreshing:(id)scrollView;
@end

NS_ASSUME_NONNULL_END

